-- GENERATED SPELL FOR [Anvilrage Enforcer] --


function spell0_24819(pUnit, Event) --@Hooked Net,n/a--
pUnit:FullCastSpellOnTarget(13608,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24819', 4500, 1)
end

function spell1_24819(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24819', 8284, 1)
end

function Sorts_24819(pUnit, Event)
local choix_sorts_24819 = math.random(0, 1)
if choix_sorts_24819 == 0 then
pUnit:RegisterEvent('spell0_24819', 1, 1)
end
if choix_sorts_24819 == 1 then
pUnit:RegisterEvent('spell1_24819', 1, 1)
end
end

function mob24819_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24819', math.random(1500, 3000), 1)
end

function mob24819_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24819_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24819_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24819, 1, 'mob24819_Action')
RegisterUnitEvent(24819, 2, 'mob24819_Leave')
RegisterUnitEvent(24819, 3, 'mob24819_Kill')
RegisterUnitEvent(24819, 4, 'mob24819_Die')
